package com.sky.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sky.entity.Dish;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;


/**
 * <p>
 * 菜品 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-05-18
 */

@Mapper
public interface DishMapper extends BaseMapper<Dish> {

    IPage<DishVO>   pageQuery(@Param("p") Page<DishVO> p, @Param("ew") QueryWrapper<Dish> wrapper);

    List<Dish> list(Dish dish);

    Integer countByMap(HashMap map);

}

